package com.supcon.exchangedata.utils;

import com.supcon.exchangedata.enums.ResultEnum;
import lombok.Data;

/**
 * @author ：icerain.gan
 * @date ：Created in 2020/3/11 13:34
 * @description：全局数据返回类
 * @modified By：
 * @version: 1.0$
 */
@Data
public class Response<T> {

    private Integer code;
    private ResultEnum resultMsg;
    private T data;

    public Response(Integer code, ResultEnum resultEnum, T data) {
        this.code = code;
        this.resultMsg = resultEnum;
        this.data = data;
    }

}
